import java.io.File;
import java.io.IOException;

public class IODemo3 {
    public static void main(String[] args) throws IOException {
        File file = new File("file-dir/aaa/bbb");
        // 创建多级目录
        file.mkdirs();
        file.createNewFile();
        System.out.println(file.getAbsolutePath());
    }
}
